<#assign title="资产/策略添加页面">
    <#include "/admin/inc/top.html"/>
    <div class="main-content" id="main-content">
        <header class="header navbar bg-white shadow">
            <div class="btn-group tool-button">
                <a class="btn btn-primary navbar-btn" href="${base!}/private/fof/assetStrategyInfo" data-pjax><i
                        class="fa fa-reply"></i> 返回</a>
            </div>
        </header>
        <section class="content">

            <div class="form-wrapper" style="min-height:500px;">
                <section class="panel panel-form">
                    <form id="unitAddForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                          action="${base!}/private/fof/assetStrategyInfo/addDo" method="post">
                        <div class="row mb10">
                            <div class="col-lg-12">
                                <div class="form-group">
                                    <label for="name" class="col-sm-2 control-label">资产/策略名</label>

                                    <div class="col-sm-8">
                                        <input type="text" id="name" class="form-control" name="name"
                                               data-parsley-required="true" placeholder="资产/策略名">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="type" class="col-sm-2 control-label">类型</label>

                                    <div class="col-sm-8">
                                        <select id="type" class="form-control" name="type"
                                                data-parsley-required="true" placeholder="1：资产 2：策略">
                                            <option value="1">资产</option>
                                            <option value="2">策略</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="benchmarkId" class="col-sm-2 control-label">benchmarkId</label>

                                    <div class="col-sm-8">
                                        <select id="benchmarkId" class="form-control" name="benchmarkId">
                                            <#list benchmarkList as benchmark>
                                                <option value="${benchmark.id}">${benchmark.name}</option>
                                            </#list>
                                        </select>
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="windInvestType" class="col-sm-2 control-label">万德InvestType筛选词</label>

                                    <div class="col-sm-8">
                                        <input type="text" id="windInvestType" class="form-control" name="windInvestType"
                                               placeholder="万德InvestType筛选词">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="windInvestStyle" class="col-sm-2 control-label">万德InvestStyle筛选词</label>

                                    <div class="col-sm-8">
                                        <input type="text" id="windInvestStyle" class="form-control" name="windInvestStyle"
                                                placeholder="万德InvestStyle筛选词">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="goFundTypeTarget" class="col-sm-2 control-label">朝阳永续TypeTarget筛选词</label>

                                    <div class="col-sm-8">
                                        <input type="text" id="goFundTypeTarget" class="form-control" name="goFundTypeTarget"
                                               placeholder="朝阳永续TypeTarget筛选词">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="goFundTypeStrategy" class="col-sm-2 control-label">朝阳永续TypeStrategy筛选词</label>

                                    <div class="col-sm-8">
                                        <input type="text" id="goFundTypeStrategy" class="form-control" name="goFundTypeStrategy"
                                               placeholder="朝阳永续TypeStrategy筛选词">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="goFundTypeQuant" class="col-sm-2 control-label">朝阳永续FundTypeQuant筛选词</label>

                                    <div class="col-sm-8">
                                        <input type="text" id="goFundTypeQuant" class="form-control" name="goFundTypeQuant"
                                                placeholder="朝阳永续FundTypeQuant筛选词">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="goFundTypeHedging" class="col-sm-2 control-label">朝阳永续FundTypeHedging筛选词</label>

                                    <div class="col-sm-8">
                                        <input type="text" id="goFundTypeHedging" class="form-control" name="goFundTypeHedging"
                                               placeholder="朝阳永续FundTypeHedging筛选词">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label for="description" class="col-sm-2 control-label">描述信息</label>

                                    <div class="col-sm-8">
                                    <textarea type="text" id="description" class="form-control" name="description"
                                              placeholder="描述信息"></textarea>
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                            </div>
                        </div>
                        <div class="col-lg-3"></div>
                        <div class="col-lg-6">
                            <div class="form-group text-center">
                                <label></label>

                                <div>
                                    <button class="btn btn-primary btn-block btn-lg btn-parsley"
                                            data-loading-text="正在提交...">提 交
                                    </button>
                                </div>
                            </div>
                        </div>
                    </form>
                </section>

            </div>
            <a class="exit-offscreen"></a>
        </section>
    </div>
    <script language="JavaScript">
        $(document).ready(function () {
            $('#unitAddForm').ajaxForm({
                dataType: 'json',
                beforeSubmit: function (arr, form, options) {
                    form.find("button:submit").button("loading");
                },
                success: function (data, statusText, xhr, form) {
                    if (data.code == 200) {
                        Toast.success(data.msg);
                        form.resetForm();
                    } else {
                        Toast.error(data.msg);
                    }
                    form.find("button:submit").button("reset");
                }
            });
        });
    </script>
    <#include "/admin/inc/bottom.html"/>